<?php
$this->pageTitle = Yii::app()->name . ' - About';
$this->breadcrumbs = array(
    'About',
);
?>
<link href="/alocainf/assets/884ba3ad/gridview/styles.css" type="text/css" rel="stylesheet">
<h1>Consulta de Salas</h1>
<div class="search-form">
    <ul style="list-style-type:none">
        <li style="float:left;margin-left: 10px">
            <?php
                echo CHtml::label('Prédio', 'ID_PREDIO');
                echo CHtml::dropDownList('ID_PREDIO','', array('1'=>'43425'));
            ?>
        </li>
        <li style="float:left;margin-left: 10px">
            <?php
                echo CHtml::label('Ambiente', 'ID_AMBIENTE');
                echo CHtml::dropDownList('ID_AMBIENTE','', array('1'=>'201'));
            ?>
        </li>
        <li style="float:left;margin-left: 10px">
            <?php
                echo CHtml::label('Dia', 'DT_DIA');
                echo CHtml::textField('DT_DIA','',array('size'=>20,'maxlength'=>10));
            ?>
        </li>
        <li style="float:left;margin-left: 10px">
            <?php
                echo CHtml::submitButton('Pesquisar');
            ?>
        </li>
    </ul>
</div>
<div class="grid-view">
    <table class="items">
        <thead>
            <tr>
                <th>Horário</th>
                <th>Domingo<br>11/09/11</th>
                <th>Segunda<br>12/09/11</th>
                <th>Terça<br>13/09/11</th>
                <th>Quarta<br>14/09/11</th>
                <th>Quinta<br>15/09/11</th>
                <th>Sexta<br>16/09/11</th>
                <th>Sábado<br>17/09/11</th>
            </tr>
        </thead>
        <?php
        for ($i = 0; $i < 16; $i++) {
            for ($j = 0; $j < 2; $j++) {
                echo '<tr class="'.($j%2==0?'even':'odd').'">';
                echo '<td>' . date('H:i', mktime($i + 7, $j%2==0?0:30, 0, 9, 11, 2011)) . '</td>';
                echo '<td>' . 'Badanha' . '</td>';
                echo '<td style="text-align:center">' . '<input type="checkbox"/>' . '</td>';
                echo '<td>' . '' . '</td>';
                echo '<td>' . '' . '</td>';
                echo '<td>' . '' . '</td>';
                echo '<td>' . '' . '</td>';
                echo '<td>' . '' . '</td>';
                echo '</tr>';
            }
        }
        ?>
    </table>
</div>